home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9976 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.6 KB

  1. Path: lab.ultra.nyu.edu!kenner
  2. From: kenner@lab.ultra.nyu.edu (Richard Kenner)
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++
  4. Subject: Re: C/C++ knocks the crap out of Ada
  5. Date: 5 Mar 1996 11:56:24 GMT
  6. Organization: New York University Ultracomputer Research Lab
  7. Message-ID: <4hha58$95f@news.nyu.edu>
  8. References: <4gvrffINNlqo@anvil.ugrad.cs.ubc.ca> <4h4j31$1ga3@watnews1.watson.ibm.com> <4h5cbcINNahr@anvil.ugrad.cs.ubc.ca>
  9. NNTP-Posting-Host: lab.ultra.nyu.edu
  10.  
  11. In article <4h5cbcINNahr@anvil.ugrad.cs.ubc.ca> c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) writes:
  12. >So what law is there that prevents the same thing to be done with Ada?
  13.  
  14. No law, but you can't have a *validated* Ada compiler that implements
  15. extensions.
  16.  
  17. >There is a GNU Ada compiler, too---is _that_ 100% compliant with the
  18. >standards?
  19.  
  20. Yes.
  21.  
  22. > >example, in the description of the -pedantic option in section 2.3 of
  23. > >"Using GNU CC," Stallman writes: 
  24. > >
  25. > >    A feature to report any failure to conform to ANSI C might be useful
  26. > >    in some instances, but would require considerable additional work and
  27. > >    would be quite different from '-pedantic'.  We recommend, rather,
  28. > >    that users take advantage of the extensions of GNU C and disregard
  29. > >    the limitations of other compilers.
  30.  
  31. Although this is indeed RMS's view, GCC actually does better than this
  32. statement implies.  Over time, more and more additional checks get put
  33. in.  The intent is indeed that -pedantic would give warning about the
  34. use of any GNU C extensions.  At this point, it probably does for the
  35. vast majority of them (e.g., another such test was added last week),
  36. but there might still be a few missing.  I'm inclined to treat any
  37. such missing cases as (low-priority) bugs, so please report any you
  38. find to bug-gcc@prep.ai.mit.edu.
  39.  
  40. Note that RMS's role in GCC is now just advisory; I've been the
  41. principle maintainer of it for a number of years now.
  42.  
  43. >The GNU compiler is not C, and everyone knows that. It just happens to
  44. >translate C programs. It has severely deviant extensions, such as the ability
  45. >to define functions within functions, or to have dynamically-sized automatic
  46. >variables. The above paragraph from ``Using GNU CC'' has ulterior motives. If
  47. >you write freeware code using gratuitous GCC extensions,  its use will be
  48. >limited to platforms that are supported by GCC.
  49.  
  50. This is not a very severe limitation, since, at this point, nearly all
  51. platforms support GCC.  Also, many consider such extensions useful.
  52. At present, writing code for GCC is a very good way of being portable,
  53. precisely because the exact same compiler runs on so many systems.
  54.